package org.apache.dubbo.spi.domain;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/7/29 10:40
 */
public class WrapperRobot implements Robot {


    private Robot robot;

    /**
     * 参数构造触发包装类
     */
    public WrapperRobot(Robot robot) {
        this.robot = robot;
    }

    @Override
    public void sayHello() {
        System.out.println("触发包装类啦");
        robot.sayHello();
    }
}
